<template>
  <div>
    <!-- <el-input v-model="id"></el-input> -->
    <el-button @click="login1">RabbitMQ延时队列测试</el-button>

    <section class="step-section">
      <span>1、</span>
      <span>pom.xml文件：</span>
      <span>spring-boot-starter-amqp</span>
    </section>
    <section class="step-section">
      <span>2、</span>
      <span>application.properties配置文件：</span>
      <span>spring.rabbitmq.host=127.0.0.1</span>
      <span>、</span>
      <span>spring.rabbitmq.port=5672</span>
      <span>、</span>
      <span>spring.rabbitmq.virtual-host=/</span>
    </section>
    <section class="step-section">
      <span>2、</span>
      <span>Application启动类：</span>
      <span>@EnableRabbit</span>
    </section>
    <section class="step-section">
      <span>3、</span>
      <span>核心代码：</span>
      <span>MyMQConfig.java</span>
    </section>
  </div>
</template>

<script>
import API from '@/api/rabbitMQ'
export default {
  name: 'rabbitMQ',
  data () {
    return {
        // id: 1
    }
  },
  methods: {
    login1 () {
      API.login1().then(res => {
        this.$message.success(`操作成功！`)
      }).catch(e => {
        this.$message.error(`error:${e.message}`)
      }).finally(() => {

      })
    }
  }
}
</script>

<style lang="less" scoped>
.step-section{
  font-size: 16px;
  font-weight: bold;
}
</style>
